Extracts the first two parts of folder names separated by a delimiter and creates new directories from them.